package csm.web.core.search;

import csm.web.core.RequestHelper;

public final class SearchFacade {

	public static SearchResultInfo doIRSearch(RequestHelper req) throws Exception{
		ISearchCommand cmd = SearchCommadFactory.getSearchCommand(SearchEnginType.IR);
		return cmd.doSearch(req);
	}
	public static SearchResultInfo doMashupSearch(RequestHelper req, MashupItem itm) throws Exception{
		ISearchCommand cmd = SearchCommadFactory.getSearchCommand(SearchEnginType.parse(itm.getVendorName()));
		return cmd.doSearch(req);
	}
}
